package com.example.zhujftest.hik.test;

import java.util.Map;

import com.google.common.collect.ImmutableMap;

public class ConstantMap  {

	
	 static Map<Integer, String> INTEGER_STRING_MAP =
	            new ImmutableMap.Builder<Integer, String>().
	                    put(30, "IP地址或地址段").
	                    put(31, "端口号或范围").
	                    put(32, "IP地址或地址段").
	                    put(33, "端口号或范围").
	                    put(34, "代码值").
	                    put(38, "探针名称").
	                    put(39, "网络协议号(protocol)").
	                    put(40, "ipv6源IP(ipv6_src_addr)").
	                    put(41, "ipv6目标IP(ipv6_dst_addr)").
	                    put(42, "网络协议名称(protocol_map)").
	                    put(43, "输入接口snmp(input_snmp)")
	                    .build();

	 public static void main(String[] args) {
		 //immutableMapTest();
		 System.out.println(Color.RED.getIndex());
	}
	 
	 
	 private static void immutableMapTest() {
         Integer key = 30;
         System.out.println("key = " + key + "的提示语是：" + ConstantMap.INTEGER_STRING_MAP.get(key));
     }
}
